package com.youzhi.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 按钮表
 * </p>
 *
 * @author xumeng
 * @since 2022-12-02
 */
@Data
@ApiModel(value = "Button对象", description = "按钮表")
public class Button implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("按钮名称")
    private String name;

    @ApiModelProperty("按钮操作url")
    private String url;

    @ApiModelProperty("权限code")
    private String privilegeCode;

    @ApiModelProperty("菜单id（表名按钮在哪个页面内）")
    private Long menuId;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

}
